package object.apply;

import java.util.Objects;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Account
 * Package: object.apply
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-22
 * Time: 23:15
 */

public class Account {

    private double balance;//余额

    public Account(){}

    public Account(int balance){
        this.balance = balance;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Account account = (Account) o;
        return Double.compare(balance, account.balance) == 0;
    }

}
